import axios from "@/utils/reqiest";

//题库添加
export function Add(data) {
    return axios({
        method: "post",
        url: "/Question/AddQusetion",
        data: data
    })
}
//题库类型递归
export function QuestionList() {
    return axios({
        method: "get",
        url: "/Question/GetQuestionTypeDto",
    })
}
//技术类型表
export function TechTypeList() {
    return axios({
        method: "get",
        url: "/Question/GetTechType",
    })
}
//题库显示
export function List(data) {
    return axios({
        method: "get",
        url: "/Question/GetQusetions?TechTypeId=" + data.techTypeId + "&pageIndex=" + data.pageIndex + "&pageSize=" + data.pageSize,
    })
}
//题库修改
export function Update(data) {
    return axios({
        method: "put",
        url: "/Question/UpdateQuestion",
        data
    })
}
//题库反填
export function Find(data) {
    return axios({
        method: "get",
        url: "/Question/FindQuestion?id=" + data,

    })
}
//题库删除
export function Delete(data) {
    return axios({
        method: "delete",
        url: "/Question/DeleteQuestion?id=" + data,

    })
}
